<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Accounts/AccountsDetail.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/Accounts/AccountsDetail.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'internal_id_fk',
                    footer: "Foots",
                    cnName: '应收明细',
                    name: 'AccountsDetail',
                    url: "/AccountsDetail/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'internal_id_fk',title:'内部编号（流水号）',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'account_code',title:'应收账户编号',type:'string',width:90,require:true,align:'left',sortable:true},
                       {field:'out_order_id',title:'外部订单编号',type:'string',width:90,require:true,align:'left'},
                       {field:'customer_name',title:'消费用户姓名',type:'string',width:90,align:'left'},
                       {field:'customer_phone',title:'消费用户手机号',type:'string',width:90,align:'left'},
                       {field:'business_date',title:'营业日期',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'business_time',title:'营业日业务产生时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'type_func',title:'功能类型（1-入账，2-转账，3-调整，4-冲账）',type:'int',width:90,require:true,align:'left'},
                       {field:'type_record',title:'入账类型（1-渠道挂账，2-自动挂账，3-手工挂账，4-第三方挂账）',type:'int',width:90,require:true,align:'left'},
                       {field:'amount_total',title:'单笔总消费金额',type:'decimal',width:90,align:'left'},
                       {field:'amount_recharge',title:'充值消费金额',type:'decimal',width:90,align:'left'},
                       {field:'amount_credit',title:'授信消费金额',type:'decimal',width:90,align:'left'},
                       {field:'verify_status',title:'核销核验（1-未核验，2-已核验）',type:'int',width:90,align:'left'},
                       {field:'verify_amount',title:'已核销核验金额',type:'decimal',width:90,align:'left'},
                       {field:'noverify_amount',title:'未核销核验金额',type:'decimal',width:90,align:'left'},
                       {field:'verify_by',title:'核销核验人',type:'string',width:90,align:'left'},
                       {field:'verify_datetime',title:'核销核验日期',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'notes',title:'财务备注',type:'string',width:180,align:'left'},
                       {field:'is_valid',title:'是否有效',type:'int',width:90,align:'left'},
                       {field:'is_delete',title:'逻辑删除标志',type:'int',width:90,align:'left'},
                       {field:'timesapn',title:'时间戳',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
